package com.aat.restful.springresteasy.app;

import java.io.Serializable;

import com.alibaba.fastjson.annotation.JSONField;

public class ChkResult implements Serializable {
	private static final long serialVersionUID = 1L;
	private boolean result;

	@JSONField(serialize = false)
	private ErrorCode status;

	public boolean isResult() {
		return result;
	}

	public void setResult(boolean result) {
		this.result = result;
	}

	public ErrorCode getStatus() {
		return status;
	}

	public void setStatus(ErrorCode status) {
		this.status = status;
	}

	public int getCode() {
		return status.getCode();
	}

	public String getMsg() {
		return status.getDesc();
	}

}
